package com.jx.service;

import com.jx.entity.User;
import com.jx.utils.PageResult;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author Mr.Liu
 * @Date 2021/11/1 14:50
 * @Version 1.0
 */
@Service
public interface UserService {
    User selectByPrimaryKey(int i);

    User getUserByName(String username);

    List<User> getUserByUser(User u);

    PageResult<User> getUserList(Integer page, Integer limit, String searchKey, String searchValue);

    int deleteByPrimaryKey(Integer id);

    int insert(User user);

    int updateByPrimaryKeySelective(User user);

    int updateByPrimaryKeySelective2();

    int register(User user);
}
